import '@/styles/common.scss'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'

import DirectivePlugin from '@/directives/index'
import ComponentsPlugin from '@/components/index'


const app = createApp(App)

app.use(createPinia())
app.use(router)
// 注册指令插件
app.use(DirectivePlugin)
// 注册全局组件
app.use(ComponentsPlugin)

app.mount('#app')